<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>动态 import </title>
</head>
<body>
    <button id="btn">点击</button>
<!--    <script src="js/app.js" type="module"></script>-->
<script  type="text/javascript">
    import "js/app";
</script>
</body>
</html>